/*******************************************************
* Copyright (c) 2018-2088, By XuXiang all rights reserved.
*
* FileName: RoleWrap.cpp
*
* Author: AutoBuild
* Date: --/--
*******************************************************/

#include "RoleWrap.h"
#include "../CSVLoader.h"

namespace Competition
{
	RoleWrap::RoleWrap() : id(0), atk(0), hp(0), def(0)
	{
	}

	void RoleWrap::Read(CSVLoader* loader)
	{
		id = loader->ReadInt("id");
		atk = loader->ReadInt("atk");
		hp = loader->ReadInt("hp");
		def = loader->ReadInt("def");
	}
}

